<?php
require('fpdf/fpdf.php');

$pdf = new FPDF();
$pdf->AddFont('THSarabunNew','','THSarabunNew.php');
$pdf->AddPage();
$pdf->SetFont('THSarabunNew','',35);
$pdf->Write(10,'Enjoy new fonts with FPDF!');
$pdf->Output();
?>